package com.xxx.system.controller;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.xxx.base.utils.R;

import com.xxx.system.domain.Permission;
import com.xxx.system.query.PermissionQuery;
import com.xxx.system.service.IPermissionService;
import com.xxx.user.domain.Dict;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/perm")
@Api(tags = "权限接口类")
public class PermissionController {
    @Autowired
    private IPermissionService permissionService;
    @GetMapping
    @ApiOperation(value = "查询所有权限")
    public R<List<Permission>> findAll() {
        List<Permission> list = permissionService.findAll();
        return R.ok(list);
    }

}
